from flask import Flask
from FourthDay.蓝图 import cart_bp


app = Flask(__name__)

# url_prefix='/admin'给所有蓝图中路由添加前置路径
app.register_blueprint(cart_bp, url_prefix='/admin')

@app.route('/')
def index():
    return 'index'

# @app.route('/cart')
# def cart_info():
#     return 'cart_info'

@app.route('/goods')
def goods():
    return 'goods list'

@app.route('/user')
def user():
    return 'user info'


if __name__ == "__main__":
    print(app.url_map)
    app.run(debug=True)
